<html>
<head>
    <title>机构管理</title>
</head>
<body>

<div>
    <!-- 工具栏 -->
    <div class="row">
        <div class="col-sm-12">
            <div class="pull-left">
                <button class="btn btn-sm btn-primary" id="addBtn">
                    <i class="fa fa-plus"></i> 添加
                </button>
                <button class="btn btn-sm btn-success" id="modifyBtn">
                    <i class="fa fa-file-text-o"></i> 修改
                </button>
                <button class="btn btn-sm btn-danger" id="delBtn">
                    <i class="fa fa-trash-o"></i> 删除
                </button>
            </div>
            <div class="pull-right">
                <button class="btn btn-sm btn-info" id="searchBtn">
                    <i class="fa fa-search"></i> 搜索
                </button>
            </div>
        </div>
    </div>

    <div class="row" style="margin-top: 10px;">
        <div class="col-sm-12">
            <div id="mainGrid">
                <table id="btTable" class="table table-condensed table-hover table-striped"></table>
            </div>
        </div>
    </div>


    <div id="modal">
        <form class="form-horizontal">
            <input type="hidden" id="id"/>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>组织全称</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="fullName" name="fullName">
                </div>
                <div class="col-md-2 text-right">
                    <span>组织简称</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="simpleName" name="simpleName"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span>上级组织</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control tree" id="pId" name="pId">
                </div>
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>组织编码</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="code" name="code"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>联系电话</span>
                </div>
                <div class="col-md-4">
                    <input class="form-control" id="phone" name="phone"/>
                </div>
                <div class="col-md-2 text-right">
                    <span>成立日期</span>
                </div>
                <div class="col-md-4">
                    <div class="input-group date form_datetime">
                        <input class="form-control" id="buildDate" name="buildDate"/>
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span><span style="color: red;">* </span>序号</span>
                </div>
                <div class="col-md-10">
                    <input class="form-control" id="sort" name="sort">
                </div>

            </div>
            <div class="form-group">
                <div class="col-md-2 text-right">
                    <span>备注</span>
                </div>
                <div class="col-md-10">
                    <textarea class="form-control" rows="5" id="remarks" name="remarks"></textarea>
                </div>
            </div>
        </form>
    </div>


</div>

<ex-section id="ScriptBody">
    <script type="text/javascript" src="${request.contextPath}/js/main/modules/sys/orgList.js?v=<@spring.message 'js.version'/>"></script>
    <script type="text/javascript">
        pageLogic.initData = {
            modalParams: [
                {
                    width: 800,
                    height: 400,
                    title: "机构"
                }
            ],
            restUrlPrefix: "/sys/orgs",
            queryMsg: {
            }
        };

    </script>
</ex-section>
</body>
</html>
